package com.os.meituan.utils;

import org.springframework.core.convert.converter.Converter;

import java.util.Date;

/**
 * 这个方法只有在协议是x-www-form-urlencode才会触发
 */

public class StringToDateConverter implements Converter<String, Date> {

    @Override
    public Date convert(String source) {

        Date dtDate = DateClass.parseDate(source);
        return dtDate;
    }

}
